package com.mapper;

import com.pojo.OrderProject;
import com.pojo.Returner;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ReturnerMapper {
    //根据项目id查找所有回报类型
    public List<Returner> selectReturnByprojectid(long projectId);
    //根据回报id来展示回报信息
    public Returner selectByreturnid(long id);
    //添加回报信息
    public int insertReturner(Returner returner);
    //修改回报数量
    public int updateReturnerCount(@Param("id")long id,@Param("count")long count);

    //根据项目名查找所有的订单
    public List<OrderProject> selectByProjectName(String projectName);
    //删除，删除所有订单表
    public int deleteOrder(long id);
    //删除所有订单详情表
    public int deleteOrderProject(String projecrName);
    //删除所有回报信息
    public int deleteReturner(long projectId);
}
